<%@ page language="java" import="java.util.*,com.zczx.gislab.model.Userinfo" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Userinfo UserInfo = (Userinfo)session.getAttribute("userinfo");
String photoUrl="";
if(UserInfo==null){
	UserInfo = new Userinfo();
	UserInfo.setDefaultrole("");
	UserInfo.setUsername("");
	UserInfo.setId("");
	photoUrl="./imgs/useralt.png";
}else{
	photoUrl="./photos/"+UserInfo.getPhoto();
}
%>
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title data-localize="master_title"></title>

	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
	<link rel="stylesheet" href="./style/page.css">
	<link rel="stylesheet" href="./style/master.css">
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	<script type="text/javascript">
	 	var Role= '<%=UserInfo.getDefaultrole()%>';
        var User= '<%=UserInfo.getUsername()%>';
		var UserID= '<%=UserInfo.getId()%>';
		if('<%=request.getParameter("lt")%>'=="course")Role='teacher';
		if(!UserID||UserID=="null"){
			location.href="https://sso.supermap.com/login?service="+window.location.protocol+"//"+window.location.host+"/University/login";
		}
	</script>
</head>

<body>
	<%@ include file="head.jsp"%>
	<!--用户头像-->
	<div class="navbar container-fluid" role="navigation" id="nav_userhead">
		<a href="./myinfo">
			<img src="<%=photoUrl%>" alt="Avatar" class="img-circle" id="UserAvatar"/>
		</a>
		<div class="UserContent">
			<h3 id="UserNickname" title="<%=nickname%>"><%=nickname%></h3>
			<button type="button" class="btn btn-default" onclick="swichRole(this.getAttribute('data-role'))">
			</button>
		</div>
	</div>
	<div id="container" class="container-fluid">
		<div class="row">
			<div class="col-xs-2 height100">
				<div class="leftmenu">
					<ul class="nav nav-pills nav-stacked" id="menuinx">
						<li role="presentation" class="pm_submenulist" id="course"><a href="#" data-toggle="pill"  data-localize="master_coursemanage"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>

						<li role="presentation" class="pm_submenulist" id="recruitstmg"><a href="#" data-toggle="pill"  data-localize="ms_recruitstmg"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>

						<li role="presentation" class="pm_submenulist" id="onlinelab"><a href="#" data-toggle="pill" data-localize="master_onlinelab"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
						<li role="presentation" class="pm_submenulist" id="homewk"><a href="#" data-toggle="pill" data-localize="hw_homewk"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
						<li role="presentation" class="pm_submenulist" id="score"><a href="#" data-toggle="pill" data-localize="master_scoremanage"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>


						<li role="presentation" class="pm_submenulist" id="labcorrecting"><a href="#" data-toggle="pill" data-localize="master_labcorrecting"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>

						<li role="presentation" class="pm_submenulist" id="resource"><a href="#" data-toggle="pill" data-localize="master_traininggresource"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
						<li role="presentation" class="pm_submenulist" id="downloads"><a href="#" data-toggle="pill" data-localize="master_resourcedownloads"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;&nbsp;</a></li>

					</ul>
				</div>

			</div>
			<div class="col-xs-8 height100 rightNoPadding">
				<iframe id="rightIframe" width="100%" height="100%" seamless frameborder="0" src="">
				</iframe>
			</div>
			<div class="col-xs-2 height100">
				<div id="advertisement" class="carousel slide" data-ride="carousel">
					<ol class="carousel-indicators">
					</ol>

					<div class="carousel-inner" role="listbox">
					</div>

					<a class="left carousel-control" href="#advertisement" role="button" data-slide="prev">
						<span class="glyphicon glyphicon-chevron-left"></span>
						<span class="sr-only" data-localize="nav_pre"></span>
					</a>
					<a class="right carousel-control" href="#advertisement" role="button" data-slide="next">
						<span class="glyphicon glyphicon-chevron-right"></span>
						<span class="sr-only" data-localize="nav_next"></span>
					</a>
				</div>
				<div id="supermapfaq">
					<h4 data-localize="ms_FAQ"></h4>
					<ul>
						<!--<li class="listfaq"><span class="listpoint"></span><a href="http://support.supermap.com.cn/product/search.aspx?querystr=" target="_blank">超图知道没有英文版</a></li>
						<li class="seemoreFAQ">
							<span class="glyphicon glyphicon-chevron-down"></span>
							<a href="http://support.supermap.com.cn/product/search.aspx?querystr=" target="_blank" data-localize="ms_seemoreFAQ"></a>
						</li>-->
					</ul>
				</div>
			</div>
		</div>
		<h6 style="text-align:center" data-localize="login_copyright"></h6>
	</div>

	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="http://cdn.bootcss.com/jquery/1.12.1/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="http://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
	<script src="script/jquery.i18n.properties.min.js"></script>
	<script src="script/jquery.i18n.init.js"></script>
	<script src="script/layerui/layer.js"></script>
	<script src="script/layui/layui.js"></script>
	<script src="script/master.js"></script>
</body>

</html>